package com.thinkgem.jeesite.cn.yy.serviceimpl;

import com.thinkgem.jeesite.cn.yy.entity.ColAction;
import com.thinkgem.jeesite.cn.yy.service.ColRecordService;
import com.thinkgem.jeesite.cn.yy.utils.Paging;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2017/11/27 0027.
 */
@Service
@Transactional
public class ColRecordServiceImpl implements ColRecordService {

    @Resource
    private ColRecordService colRecordService;



    public void save(ColAction col) {
        colRecordService.save(col);
    }

    @Transactional(propagation= Propagation.NOT_SUPPORTED)
    public List<ColAction> getColRecords(Paging p) {
        return colRecordService.getColRecords(p);
    }

    @Transactional(propagation= Propagation.NOT_SUPPORTED)
    public List<ColAction> getColRecordByCid(int tab_id) {
        return colRecordService.getColRecordByCid(tab_id);
    }

    @Transactional(propagation= Propagation.NOT_SUPPORTED)
    public int getCount(){
        return colRecordService.getCount();
    }

    @Transactional(propagation= Propagation.NOT_SUPPORTED)
    public int getCount(String tid) {
        return colRecordService.getCount(tid);
    }

    @Transactional(propagation= Propagation.NOT_SUPPORTED)
    public List<ColAction> getColRecordByTname(String tname) {
        return colRecordService.getColRecordByTname(tname);
    }
}
